package com.ns.school.common.constant;

import com.ns.school.common.utils.Md5Util;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 常量
 *
 * @author Spark
 */
@Component
public class StaticVarY {

    public static String profile;
    public static String AES_SK;// 加密的秘钥

    @Value("${wt.profile:}")
    public void setProfile(String p) {
        profile = p;
    }

    @Value("${wt.aesSk:0x0-xXx-0x0}")
    public void setAesSk(String aesSk) {
        AES_SK = Md5Util.getMD5(aesSk);
    }
}
